body {
background: #333;
height: 100vh;
display: grid;
place-items: center;
}
.load {
position: relative;
width: 100px;
height: 100px;
}
.load hr {
border: 0;
margin: 0;
width: 40%;
height: 40%;
position: absolute;
border-radius: 50%;
animation: spin 2s ease infinite;
}
.load :first-child {
background: #ff6795;
animation-delay: -1.5s;
}
.load :nth-child(2) {
background: #3cbdff;
animation-delay: -1s;
}
.load :nth-child(3) {
background: #ffe448;
animation-delay: -0.5s;
}
.load :last-child {
background: #feaa82;
}
@keyframes spin {
0%,
100% {
transform: translate(0);
}
25% {
transform: translate(160%);
}
50% {
transform: translate(160%, 160%);
}
75% {
transform: translate(0, 160%);
}
}